package org.zachary.agent.application;

import org.springframework.stereotype.Service;
import org.zachary.agent.domain.aggregate_model.check_ucs_info.CheckUserCreditScoreInfo;
import org.zachary.agent.infrastructure.repository.CheckUserCreditScoreInfoMapper;

import java.util.List;

@Service
public class AdminExamineApproveService {
    private final CheckUserCreditScoreInfoMapper checkUserCreditScoreInfoMapper;

    public AdminExamineApproveService(CheckUserCreditScoreInfoMapper checkUserCreditScoreInfoMapper) {
        this.checkUserCreditScoreInfoMapper = checkUserCreditScoreInfoMapper;
    }

    public List<CheckUserCreditScoreInfo> getCheckUserCreditScoreInfo() {
        return checkUserCreditScoreInfoMapper.selectAllValidCreditUsers();
    }
}
